Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed CLI output when running post_write hooks #1262

Closed
wants to merge 2 commits into from

Conversation

duc00
Copy link
Contributor

@duc00 duc00 commented Jun 17, 2023

Fixes: #1261

Description

Just fixed badly written Python string interpolation. Used the % operator just like the lines above.

Checklist

This pull request is:

  • A documentation / typographical error fix
    • Good to go, no issue or tests are needed
  • A short code fix
    • please include the issue number, and create an issue if none exists, which
      must include a complete example of the issue. one line code fixes without an
      issue and demonstration will not be accepted.
    • Please include: Fixes: #<issue number> in the commit message
    • please include tests. one line code fixes without tests will not be accepted.
  • A new feature implementation
    • please include the issue number, and create an issue if none exists, which must
      include a complete example of how the feature would look.
    • Please include: Fixes: #<issue number> in the commit message
    • please include tests.

Have a nice day!

@CaselIT
Copy link
Member

CaselIT commented Jun 17, 2023

Thanks. Maybe we could use f-strints tough?

@duc00
Copy link
Contributor Author

duc00 commented Jun 17, 2023

Thanks. Maybe we could use f-strints tough?

Sure. I was worried about compatibility with lower Python versions but found out Alembic support 3.7+. No worries then.

Shall I update all occurrences in the file? Don't know what the policy is concerning updating outdated code.

@CaselIT
Copy link
Member

CaselIT commented Jun 17, 2023

Shall I update all occurrences in the file? Don't know what the policy is concerning updating outdated code.

As you prefer

@duc00
Copy link
Contributor Author

duc00 commented Jun 17, 2023

Done. Let me know

@CaselIT CaselIT requested a review from sqla-tester June 17, 2023 17:46
Copy link
Collaborator

@sqla-tester sqla-tester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, this is sqla-tester setting up my work on behalf of CaselIT to try to get revision 19d17f5 of this pull request into gerrit so we can run tests and reviews and stuff

@sqla-tester
Copy link
Collaborator

New Gerrit review created for change 19d17f5: https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/4731

@sqla-tester
Copy link
Collaborator

mike bayer (zzzeek) wrote:

hi and thanks for this!

as trivial as this is, it fixes a user-facing bug so likely needs a changelog. otherwise peopel dont know what they are getting when they download a newer version

View this in Gerrit at https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/4731

@sqla-tester
Copy link
Collaborator

Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/4731 has been merged. Congratulations! :)

@sqla-tester
Copy link
Collaborator

Federico Caselli (CaselIT) wrote:

updated the change log. Sadly I did commit & push and it merged it..

git review -d id sets the upstream to main 😞

View this in Gerrit at https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/4731

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Badly formatted output when running post-write hooks
3 participants